@tailwind base;
@tailwind components;
@tailwind utilities;

/* :root {
  --color-background: #f8f9fa;
  --color-text: #212529;
  --color-primary: #007bff;
  --color-secondary: #6c757d;
  --color-icon: #17a2b8;
} */

@layer base {
  :root {
    --background: 211 100% 95%;
    --foreground: 211 5% 0%;
    --card: 211 50% 90%;
    --card-foreground: 211 5% 10%;
    --popover: 211 100% 95%;
    --popover-foreground: 211 100% 0%;
    --primary: 211 100% 50%;
    --primary-foreground: 0 0% 100%;
    --secondary: 211 30% 70%;
    --secondary-foreground: 0 0% 0%;
    --muted: 173 30% 85%;
    --muted-foreground: 211 5% 35%;
    --accent: 173 30% 80%;
    --accent-foreground: 211 5% 10%;
    --destructive: 0 100% 30%;
    --destructive-foreground: 211 5% 90%;
    --border: 211 30% 50%;
    --input: 211 30% 18%;
    --ring: 211 100% 50%;
    --radius: 0.5rem;

    /* Custom variables */
    /* --color-icon: #17a2b8;  Kept as hex */
    --chart-1: 12 76% 61%;
    --chart-2: 173 58% 39%;
    --chart-3: 197 37% 24%;
    --chart-4: 43 74% 66%;
    --chart-5: 27 87% 67%;
  }

  .dark {
    --background: 211 50% 5%;
    --foreground: 211 5% 90%;
    --card: 211 50% 0%;
    --card-foreground: 211 5% 90%;
    --popover: 211 50% 5%;
    --popover-foreground: 211 5% 90%;
    --primary: 211 100% 50%;
    --primary-foreground: 0 0% 100%;
    --secondary: 211 30% 10%;
    --secondary-foreground: 0 0% 100%;
    --muted: 173 30% 15%;
    --muted-foreground: 211 5% 60%;
    --accent: 173 30% 15%;
    --accent-foreground: 211 5% 90%;
    --destructive: 0 100% 30%;
    --destructive-foreground: 211 5% 90%;
    --border: 211 30% 18%;
    --input: 211 30% 18%;
    --ring: 211 100% 50%;
    --radius: 0.5rem;

    /* Custom variables for dark mode */
    /* --color-icon: #17a2b8; */
    --chart-1: 220 70% 50%;
    --chart-2: 160 60% 45%;
    --chart-3: 30 80% 55%;
    --chart-4: 280 65% 60%;
    --chart-5: 340 75% 55%;
  }
}

@layer base {
  * {
    @apply border-border;
  }
  body {
    @apply bg-background text-foreground;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  }
}

@layer base {
  body {
    @apply transition-colors duration-200;
  }
}

.demo-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s ease-in-out;
}

.demo-wrapper.show {
  grid-template-rows: 1fr;
}

.demo-content {
  overflow: hidden;
}

.demo-inner {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.demo-wrapper.show .demo-inner {
  opacity: 1;
}

.logo-text {
  font-size: 2.5rem;
  font-weight: bold;
  @apply text-foreground;
}

/* .logo-icon {
  color: hsl(var(--color-icon));
} */

.btn {
  @apply px-4 py-2 rounded-md text-white font-bold transition-colors duration-200;
}

.btn-primary {
  @apply bg-primary text-primary-foreground hover:bg-primary/90;
}

.btn-secondary {
  @apply bg-secondary text-secondary-foreground hover:bg-secondary/80;
}
